import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const TONGBUADMINDATA: AppRouteRecordRaw = {
  path: '/tongbuadmin',
  name: 'tongbuadmin',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '同步管理',
    requiresAuth: true,
    icon: 'icon-email',
    order: 3,
  },
  children: [
    {
      path: 'wuliao',
      name: 'wuliao',
      component: () => import('@/views/tongbu/wuliao/index.vue'),
      meta: {
        locale: '料品同步',
        requiresAuth: true,
        roles: [permissionType.sysAdmin, permissionType.wuLiaoTongBu],
      },
    },
  ],
}

export default TONGBUADMINDATA
